module.exports = {
  publicPath: "./", // 这里设置成./，否则打包后vue的静态资源引用会报错找不到路径导致白屏
  // runtimeCompiler: true, //关键点在这
  pluginOptions: {
    electronBuilder: {
      customFileProtocol: "./",
      nodeIntegration: true,
      builderOptions: {
        appId: "com.electron.teachertools",
        productName: "数字记忆",
        win: {
          icon: "",
          target: [
            {
              target: "nsis",
              arch: [
                "x64",
                "ia32", //32位
              ],
            },
          ],
        },
        mac: {
          icon: "",
        },
        nsis: {
          shortcutName: "数字记忆",
          oneClick: false,
          allowElevation: true,
          allowToChangeInstallationDirectory: true,
          perMachine: true,
        },
      },
    },
  },
};
